package com.straw.hat.dubbo.cousumer.service;

import com.straw.hat.api.IUserInfo;
import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.config.annotation.Service;

/**
 * @company: 鲸灵科技
 * @author: qiyue@webuy.ai
 * @date: 2019/10/5
 * @time: 8:22 下午
 */
@Service(group = "hangzhou",version = "1.0.0",interfaceClass = IUserInfo.class)
public class UserService{

    @Reference(interfaceClass = IUserInfo.class,version = "1.0.0")
    private IUserInfo iUserInfo;


    public String findUserInfo(){
        return iUserInfo.findCUser().toString();
    }
}
